package cn.bdqn.service;

import cn.bdqn.mapper.UserMapper;
import cn.bdqn.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 朱坤昊
 * @create 2021-03-13 17:05
 */
@Service("adminService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> selectAll() {
      return   userMapper.selectAll();
    }
    @Override
    public User login(String loginname, String pwd) {
        return userMapper.login(loginname,pwd);
    }


}
